package com.tool_stdy.utils.guava;

import java.util.Map;
import java.util.Map.Entry;

import com.google.common.base.Splitter;

public abstract class StringSplitTest {

    public static void main(String[] args) {
        String src="name=lisi;age=10,sex=1+id=123";
        Map<String, String> split = Splitter.onPattern("[;,+]").trimResults().withKeyValueSeparator("=").split(src);
    
        for(Entry<String, String> en:split.entrySet()){
            System.out.println(en.getKey()+"---"+en.getValue());
        }
    }
}
